package com.xigua.chapter_6_prototype.framework;

import java.util.HashMap;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2022/4/815:35
 */
public class Manager  {

    private HashMap showcase = new HashMap();
    public void register(String name,Product product){
        showcase.put(name,product);
    }

    public Product create(String photoname){
        Product o = (Product) showcase.get(photoname);
        return o.createClone();
    }

}
